<%--
  Created by IntelliJ IDEA.
  User: cyy
  Date: 2020/2/16
  Time: 15:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"></meta>
    <title>多文件上传示例</title>
    <link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="/static/bootstrap/css/bootstrapValidator.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/static/toastr/toastr.min.css">
    <script src="/static/js/jquery.min.js"></script>
    <script src="/static/bootstrap/js/bootstrap.min.js"></script>
    <script  src="/static/bootstrap/js/bootstrapValidator.js"></script>
    <script src="/static/toastr/toastr.min.js"></script>
    <script src="/static/js/business/uploadInfo/uploadPhoto.js"></script>
    <style type="text/css">
        .navbar{
            background-color: #DEB887;
        }
        .col-md-4{
            padding-top: 7px;
            padding-right: 0px;
        }
        img{
            width: 34px;
            height: 34px;
        }
        /*只显示纵向滑动条*/
        html { overflow-x: hidden; overflow-y: hidden; }
    </style>
    <script>
        var id='${id}';
        var ql='${ql}';
        var sw='${sw}'
        console.info("id:"+id+"----ql--"+ql+"------sw--"+sw)
    </script>
</head>
<body>
    <nav class="navbar" role="navigation">
        <div class="container-fluid">
            <div class="navbar-header">
                <a class="navbar-brand" href="home">
                    <span class="glyphicon glyphicon-user" aria-hidden="true" ></span>
                </a>
                <span class="navbar-brand">欢迎上传酒店信息</span>
            </div>
            <div class="collapse navbar-collapse" id="example-navbar-collapse">
                <ul class="nav navbar-nav navbar-right">
                    <li>
                        <a href="home">首页</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

    <form class="form-horizontal center-block" role="form" id="yanzheng" enctype="multipart/form-data" action="uploadPhoto" method="post">
        <input type="hidden" name="id" value="${id}">
        <div class="form-group">
            <label class="col-md-4 control-label"><img src="/static/img/hotelpic/main.png" />酒店主图:</label>
            <div class="col-md-4">
                <input class="form-control" id=""  name="files"
                       type="file" placeholder="" autocomplete="off" />
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-4 control-label"> <img src="/static/img/hotelpic/bigRoom.png" />大床房图:</label>
            <div class="col-md-4">
                <input class="form-control" id="" name="files"  type="file" placeholder="" autocomplete="off" />
            </div>
        </div>

        <div class="form-group" >
            <label class="col-md-4 control-label"><img src="/static/img/hotelpic/douRoom.png" />双人房图:</label>
            <div class="col-md-4">
                <input class="form-control" id="" name="files" type="file" placeholder="" autocomplete="off" />
            </div>
        </div>


        <div id="sw" class="form-group">
            <label class="col-md-4 control-label"><img src="/static/img/hotelpic/circles.png" />商务房图:</label>
            <div class="col-md-4">
                <input class="form-control" id="" name="files" type="file" placeholder=""autocomplete="off" />
            </div>
        </div>

        <div id="ql" class="form-group">
            <label class="col-md-4 control-label"><img src="/static/img/hotelpic/couples.png" />情侣房图:</label>
            <div class="col-md-4">
                <input class="form-control"  name="files"  type="file" placeholder=""  autocomplete="off"/>
            </div>
        </div>



        <div class="form-group" id="register">
            <label class="col-sm-2 control-label "> </label>
            <div class="col-sm-4">
                <input class="btn btn-default pull-right" type="submit" id="" value="上传" />
            </div>
        </div>
    </form>
</body>
</html>
